package scjp.preparation.exam;

import java.util.concurrent.ThreadFactory;

public class MyThreadTest {

	enum Directions { North, East, West, South };
	enum Cards { Spade, Hearts, Club, Diamond };
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		System.out.println("equals: " + Directions.East.equals(Cards.Hearts));
		System.out.println("Ordinals: " +
		(Directions.East.ordinal() == Cards.Hearts.ordinal()));

	}

}

class Thread1 implements ThreadFactory{
	public void run(){
		System.out.println("Running Thread1");
		}

	@Override
	public Thread newThread(Runnable arg0) {
		// TODO Auto-generated method stub
		return null;
	}
}

class Thread2 extends Thread{
	public void run(){
		System.out.println("Running Thread2");
		}
}